<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>scale</title>
    <style type="text/css">
        .wrapper {
            width: 200px;
            height: 200px;
            border: 2px solid purple;
            margin: 150px auto;
            transition: transform 500ms;
        }
        
        .first:hover {
            transform: scale(-1);
            /* transform: scaleX(-1); */
            /* transform: scaleY(-1); */
            background: #dedede;
        }
        
        .second:hover {
            /* scale 让元素从四周向内收缩*/
            transform: scale(0.5,0.5);
        }
        
        .third:hover {
            /* scale 让元素从内部向四周放大或从四周向内收缩*/
            transform: scale(1.25, 1.25);
        }
        .fourth:hover{
            /* scale 让元素从水平方向向四周放大或从水平方向向内收缩*/
            transform: scaleX(0.5);
             /* scale 让元素从垂直方向向四周放大或从垂直方向向内收缩
            transform: scaleY(0.5); */
        }
    </style>
</head>
<body>
    <div class="wrapper first">abc</div>
    <div class="wrapper second"></div>
    <div class="wrapper third"></div>
    <div class="wrapper fourth"></div>
</body>
</html>